package com.xuhai.blog.admin.mapper;

import com.xuhai.blog.admin.entity.ArticleEntity;
import com.xuhai.blog.admin.entity.Timeline;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author PangJunjie
 * @Date 2022/2/19/019
 */
@Mapper
public interface TimelineMapper {
    List<Timeline> getTimeline();
    List<ArticleEntity> getArticleListByYear(@Param("year") String year, @Param("limit") Integer limit);
}
